package org.ghost.wechat.platform.dto.wechat.material;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.ghost.wechat.platform.dto.WeChatErrorRspDTO;

import java.util.List;

/**
 * @author 01
 */
public class WeChatGetNewsRspDTO extends WeChatErrorRspDTO {
    private static final long serialVersionUID = -8603485179040169623L;

    private List<WeChatGetNewsDTO> newsItem;

    public List<WeChatGetNewsDTO> getNewsItem() {
        return newsItem;
    }

    @JsonProperty(value = "news_item")
    public void setNewsItem(List<WeChatGetNewsDTO> newsItem) {
        this.newsItem = newsItem;
    }

    @Override
    public String toString() {
        return "WeChatGetNewsRspDTO{" +
                "newsItem=" + newsItem +
                ", errCode=" + errCode +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}
